﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Logs.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.InStock.Logs" %>

<%@ Import Namespace="H2.NET.Common" %>

<script type="text/javascript">
    $(function () {
        setTimeout(function () {
            $("td[tip]", navTab.getCurrentPanel()).qtip({
                content: {
                    attr: 'tip'
                }
        });
        }, 100);
    });
</script>

<form id="pagerForm" onsubmit="return divSearch(this, '<%=rel%>');" action="<%= Request.RawUrl %>" method="post">
    <input type="hidden" name="pageNum" value="<%= PageNumber %>" />
    <input type="hidden" name="numPerPage" value="<%= PageSize %>" />
    <input type="hidden" name="category" value="<%= rel %>" />
</form>

<table class="table" style="width: 100%" layouth="117">
    <thead>
        <tr>
            <th width="55%">变更日志</th>
            <th width="15%" align="right">变更金额</th>
            <th width="15%" align="center">变更日期</th>
            <th width="15%" align="center">变更人</th>
        </tr>
    </thead>
    <tbody>
        <asp:repeater id="rpt_logs" runat="server">
        <ItemTemplate>
        <tr>
            <td tip="<%#Eval("Content").ToString().Replace("\n", "<br />")%>"><%#Eval("Content")%></td>
            <td><%#Utils.StrToInt(Eval("Amount").ToString(), 0).ToString("N")%></td>
            <td><%#Eval("CreateOn")%></td>
            <td><%#Eval("CreaterName")%></td>
        </tr>
        </ItemTemplate>
        </asp:repeater>
    </tbody>
</table>
<div class="panelBar">
    <div class="pages">
        <span>显示</span>
        <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, '<%=rel%>')">
            <% 
                int[] a = { 10, 20, 50, 100, 200, };
                foreach (var item in a)
                {
                    if (item == PageSize)
                    { 
            %>
            <option value="<%= item %>" selected><%= item %></option>
            <%
                    }
                    else
                    { 
            %>
            <option value="<%= item %>"><%= item %></option>
            <%
                    }
                }
            %>
        </select>
        <span>条，共 <%= TotalItemCount%> 条</span>
    </div>
    <div class="pagination" targettype="navTab" rel="<%=rel%>" totalcount="<%= TotalItemCount %>" numperpage="<%= PageSize %>" pagenumshown="5" currentpage="<%= PageNumber %>">
    </div>
</div>

